/* 薄弱知识点列表页面样式 */
.weak-points-header {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.weak-points-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* 统计概览 */
.weak-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.weak-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.weak-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.weak-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.weak-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.weak-stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 科目统计 */
.subject-stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.subject-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.subject-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.subject-stat-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.subject-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.subject-info {
    flex: 1;
}

.subject-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.subject-count {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 薄弱知识点列表 */
.weak-point-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #dc3545;
}

.weak-point-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.weak-point-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.weak-point-info {
    flex: 1;
}

.weak-point-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weak-point-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.weak-point-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mastery-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.mastery-progress {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.mastery-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.mastery-value {
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 50px;
    text-align: right;
}

.weak-point-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* 筛选控件 */
.filter-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.page-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 阈值指示器 */
.threshold-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #ffc107;
}

.threshold-value {
    font-weight: 600;
    color: #856404;
}

/* 颜色定义 */
.bg-danger { background: linear-gradient(135deg, #dc3545, #e83e8c); }
.bg-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.bg-info { background: linear-gradient(135deg, #17a2b8, #6f42c1); }
.bg-secondary { background: linear-gradient(135deg, #6c757d, #495057); }

.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }

.border-danger { border-left-color: #dc3545; }
.border-warning { border-left-color: #ffc107; }
.border-info { border-left-color: #17a2b8; }

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .weak-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .subject-stats-grid {
        grid-template-columns: 1fr;
    }

    .weak-point-header {
        flex-direction: column;
        gap: 1rem;
    }

    .weak-point-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .mastery-indicator {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mastery-value {
        text-align: left;
    }
}

/* 工具类 */
.cursor-pointer {
    cursor: pointer;
}

.text-decoration-none {
    text-decoration: none;
}

/* 加载状态 */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}